#!/bin/sh

for IP in 192.168.80.{182..186}
do
    ping -c1 -i0.2 -W1 $IP &> /dev/null
    if [ $? -eq 0 ]
    then echo "$IP is UP!"
    else    echo "$IP is down!"
    fi
done
